package com.jxz.ryxxpost.controller;

import cn.hutool.poi.excel.cell.CellSetter;

public class LogicTest {
    public static void main(String[] args) {
//        boolean b1=true;
        boolean b1=false;
        int num1=10;
        if(b1 & (num1++ >0)){
            System.out.println("我现在在北京");

        }else{
            System.out.println("我现在在南京");
        }
        System.out.println("num1 ="+num1);


//        boolean b2=true;
        boolean b2=false;
        int num2 =10;
        if(b2&&(num2++>0)){
            System.out.println("我现在在北京");
        }else {
            System.out.println("我现在在南京");
        }
        System.out.println("num2="+num2);


      //区分：|与||
       // boolean b3=false;
        boolean b3=true;
        int num3=10;
        if(b3||(num3++ >0)){
            System.out.println("我现在在北京");
         }else{
            System.out.println("我现在在南京");
        }
        System.out.println("num3="+num3);


      //  boolean b4=false;
        boolean b4=true;
        int num4 =10;
        if (b4|(num4++>0)){
            System.out.println("我现在在北京");
        }else {
            System.out.println("我现在在南京");
        }
        System.out.println("num4="+num4);
    }

}
